﻿using AutoMapper;
using DTO;
using Model;

namespace API.Mapper
{
    public class AutoMapperProfile : Profile
    {
        public AutoMapperProfile()
        {
            CreateMap<SaveBase_ActionInput, tBase_Action>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FParentId, opt => opt.MapFrom(src => src.ParentId)).ForMember(dest => dest.FType, opt => opt.MapFrom(src => src.Type)).ForMember(dest => dest.FName, opt => opt.MapFrom(src => src.Name)).ForMember(dest => dest.FUrl, opt => opt.MapFrom(src => src.Url)).ForMember(dest => dest.FValue, opt => opt.MapFrom(src => src.Value)).ForMember(dest => dest.FNeedAction, opt => opt.MapFrom(src => src.NeedAction)).ForMember(dest => dest.FIcon, opt => opt.MapFrom(src => src.Icon)).ForMember(dest => dest.FSort, opt => opt.MapFrom(src => src.Sort)); 
            CreateMap<tBase_Action, Base_ActionOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.ParentId, opt => opt.MapFrom(src => src.FParentId)).ForMember(dest => dest.Type, opt => opt.MapFrom(src => src.FType)).ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.FName)).ForMember(dest => dest.Url, opt => opt.MapFrom(src => src.FUrl)).ForMember(dest => dest.Value, opt => opt.MapFrom(src => src.FValue)).ForMember(dest => dest.NeedAction, opt => opt.MapFrom(src => src.FNeedAction)).ForMember(dest => dest.Icon, opt => opt.MapFrom(src => src.FIcon)).ForMember(dest => dest.Sort, opt => opt.MapFrom(src => src.FSort));


            CreateMap<SaveBase_AppSecretInput, tBase_AppSecret>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FAppId, opt => opt.MapFrom(src => src.AppId)).ForMember(dest => dest.FAppSecret, opt => opt.MapFrom(src => src.AppSecret)).ForMember(dest => dest.FAppName, opt => opt.MapFrom(src => src.AppName)); CreateMap<tBase_AppSecret, Base_AppSecretOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.AppId, opt => opt.MapFrom(src => src.FAppId)).ForMember(dest => dest.AppSecret, opt => opt.MapFrom(src => src.FAppSecret)).ForMember(dest => dest.AppName, opt => opt.MapFrom(src => src.FAppName));

            CreateMap<SaveBase_BuildTestInput, tBase_BuildTest>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FColumn1, opt => opt.MapFrom(src => src.Column1)).ForMember(dest => dest.FColumn2, opt => opt.MapFrom(src => src.Column2)).ForMember(dest => dest.FColumn3, opt => opt.MapFrom(src => src.Column3)).ForMember(dest => dest.FColumn4, opt => opt.MapFrom(src => src.Column4)).ForMember(dest => dest.FColumn5, opt => opt.MapFrom(src => src.Column5)); CreateMap<tBase_BuildTest, Base_BuildTestOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.Column1, opt => opt.MapFrom(src => src.FColumn1)).ForMember(dest => dest.Column2, opt => opt.MapFrom(src => src.FColumn2)).ForMember(dest => dest.Column3, opt => opt.MapFrom(src => src.FColumn3)).ForMember(dest => dest.Column4, opt => opt.MapFrom(src => src.FColumn4)).ForMember(dest => dest.Column5, opt => opt.MapFrom(src => src.FColumn5));

            CreateMap<SaveBase_DbLinkInput, tBase_DbLink>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FLinkName, opt => opt.MapFrom(src => src.LinkName)).ForMember(dest => dest.FConnectionStr, opt => opt.MapFrom(src => src.ConnectionStr)).ForMember(dest => dest.FDbType, opt => opt.MapFrom(src => src.DbType)); CreateMap<tBase_DbLink, Base_DbLinkOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.LinkName, opt => opt.MapFrom(src => src.FLinkName)).ForMember(dest => dest.ConnectionStr, opt => opt.MapFrom(src => src.FConnectionStr)).ForMember(dest => dest.DbType, opt => opt.MapFrom(src => src.FDbType));

            CreateMap<SaveBase_DepartmentInput, tBase_Department>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FName, opt => opt.MapFrom(src => src.Name)).ForMember(dest => dest.FParentId, opt => opt.MapFrom(src => src.ParentId)); CreateMap<tBase_Department, Base_DepartmentOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.FName)).ForMember(dest => dest.ParentId, opt => opt.MapFrom(src => src.FParentId));

            CreateMap<SaveBase_RoleInput, tBase_Role>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FRoleName, opt => opt.MapFrom(src => src.RoleName)); CreateMap<tBase_Role, Base_RoleOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.RoleName, opt => opt.MapFrom(src => src.FRoleName));

            CreateMap<SaveBase_RoleActionInput, tBase_RoleAction>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FRoleId, opt => opt.MapFrom(src => src.RoleId)).ForMember(dest => dest.FActionId, opt => opt.MapFrom(src => src.ActionId)); CreateMap<tBase_RoleAction, Base_RoleActionOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.RoleId, opt => opt.MapFrom(src => src.FRoleId)).ForMember(dest => dest.ActionId, opt => opt.MapFrom(src => src.FActionId));

            CreateMap<SaveBase_UserInput, tBase_User>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FUserName, opt => opt.MapFrom(src => src.UserName)).ForMember(dest => dest.FPassword, opt => opt.MapFrom(src => src.Password)).ForMember(dest => dest.FRealName, opt => opt.MapFrom(src => src.RealName)).ForMember(dest => dest.FSex, opt => opt.MapFrom(src => src.Sex)).ForMember(dest => dest.FBirthday, opt => opt.MapFrom(src => src.Birthday)).ForMember(dest => dest.FDepartmentId, opt => opt.MapFrom(src => src.DepartmentId)).ForMember(dest => dest.FPhoto, opt => opt.MapFrom(src => src.Photo)).ForMember(dest => dest.FUserId, opt => opt.MapFrom(src => src.UserId)); CreateMap<tBase_User, Base_UserOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.UserName, opt => opt.MapFrom(src => src.FUserName)).ForMember(dest => dest.Password, opt => opt.MapFrom(src => src.FPassword)).ForMember(dest => dest.RealName, opt => opt.MapFrom(src => src.FRealName)).ForMember(dest => dest.Sex, opt => opt.MapFrom(src => src.FSex)).ForMember(dest => dest.Birthday, opt => opt.MapFrom(src => src.FBirthday)).ForMember(dest => dest.DepartmentId, opt => opt.MapFrom(src => src.FDepartmentId)).ForMember(dest => dest.Photo, opt => opt.MapFrom(src => src.FPhoto)).ForMember(dest => dest.UserId, opt => opt.MapFrom(src => src.FUserId));

            CreateMap<SaveBase_UserLogInput, tBase_UserLog>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FCreatorRealName, opt => opt.MapFrom(src => src.CreatorRealName)).ForMember(dest => dest.FLogType, opt => opt.MapFrom(src => src.LogType)).ForMember(dest => dest.FLogContent, opt => opt.MapFrom(src => src.LogContent)); CreateMap<tBase_UserLog, Base_UserLogOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.CreatorRealName, opt => opt.MapFrom(src => src.FCreatorRealName)).ForMember(dest => dest.LogType, opt => opt.MapFrom(src => src.FLogType)).ForMember(dest => dest.LogContent, opt => opt.MapFrom(src => src.FLogContent));

            CreateMap<SaveBase_UserRoleInput, tBase_UserRole>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FUserId, opt => opt.MapFrom(src => src.UserId)).ForMember(dest => dest.FRoleId, opt => opt.MapFrom(src => src.RoleId)); CreateMap<tBase_UserRole, Base_UserRoleOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.UserId, opt => opt.MapFrom(src => src.FUserId)).ForMember(dest => dest.RoleId, opt => opt.MapFrom(src => src.FRoleId));

            CreateMap<SaveCanteenMenuInput, tCanteenMenu>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FMTime, opt => opt.MapFrom(src => src.MTime)).ForMember(dest => dest.FWeekDay, opt => opt.MapFrom(src => src.WeekDay)).ForMember(dest => dest.FMType, opt => opt.MapFrom(src => src.MType)).ForMember(dest => dest.FMName, opt => opt.MapFrom(src => src.MName)).ForMember(dest => dest.FMName2, opt => opt.MapFrom(src => src.MName2)).ForMember(dest => dest.FMName3, opt => opt.MapFrom(src => src.MName3)).ForMember(dest => dest.FSoup, opt => opt.MapFrom(src => src.Soup)).ForMember(dest => dest.FSyrup, opt => opt.MapFrom(src => src.Syrup)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)); CreateMap<tCanteenMenu, CanteenMenuOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.MTime, opt => opt.MapFrom(src => src.FMTime)).ForMember(dest => dest.WeekDay, opt => opt.MapFrom(src => src.FWeekDay)).ForMember(dest => dest.MType, opt => opt.MapFrom(src => src.FMType)).ForMember(dest => dest.MName, opt => opt.MapFrom(src => src.FMName)).ForMember(dest => dest.MName2, opt => opt.MapFrom(src => src.FMName2)).ForMember(dest => dest.MName3, opt => opt.MapFrom(src => src.FMName3)).ForMember(dest => dest.Soup, opt => opt.MapFrom(src => src.FSoup)).ForMember(dest => dest.Syrup, opt => opt.MapFrom(src => src.FSyrup)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted));

            CreateMap<SaveConfigurationInput, tConfiguration>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FCode, opt => opt.MapFrom(src => src.Code)).ForMember(dest => dest.FCodeValue, opt => opt.MapFrom(src => src.CodeValue)).ForMember(dest => dest.FDescribe, opt => opt.MapFrom(src => src.Describe)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)); CreateMap<tConfiguration, ConfigurationOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Code, opt => opt.MapFrom(src => src.FCode)).ForMember(dest => dest.CodeValue, opt => opt.MapFrom(src => src.FCodeValue)).ForMember(dest => dest.Describe, opt => opt.MapFrom(src => src.FDescribe)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted));

            CreateMap<SaveSignInInput, tSignIn>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FEId, opt => opt.MapFrom(src => src.EId)).ForMember(dest => dest.FEName, opt => opt.MapFrom(src => src.EName)).ForMember(dest => dest.FRId, opt => opt.MapFrom(src => src.RId)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FEEngName, opt => opt.MapFrom(src => src.EEngName)); CreateMap<tSignIn, SignInOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.EId, opt => opt.MapFrom(src => src.FEId)).ForMember(dest => dest.EName, opt => opt.MapFrom(src => src.FEName)).ForMember(dest => dest.RId, opt => opt.MapFrom(src => src.FRId)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.EEngName, opt => opt.MapFrom(src => src.FEEngName));

            CreateMap<SaveAutoMealReportingInput, tAutoMealReporting>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FEId, opt => opt.MapFrom(src => src.EId)).ForMember(dest => dest.FEName, opt => opt.MapFrom(src => src.EName)).ForMember(dest => dest.FAutoReportingType, opt => opt.MapFrom(src => src.AutoReportingType)).ForMember(dest => dest.FIsOpen, opt => opt.MapFrom(src => src.IsOpen)).ForMember(dest => dest.FOpenTime, opt => opt.MapFrom(src => src.OpenTime)).ForMember(dest => dest.FCloseTime, opt => opt.MapFrom(src => src.CloseTime)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FEEngName, opt => opt.MapFrom(src => src.EEngName)); CreateMap<tAutoMealReporting, AutoMealReportingOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.EId, opt => opt.MapFrom(src => src.FEId)).ForMember(dest => dest.EName, opt => opt.MapFrom(src => src.FEName)).ForMember(dest => dest.AutoReportingType, opt => opt.MapFrom(src => src.FAutoReportingType)).ForMember(dest => dest.IsOpen, opt => opt.MapFrom(src => src.FIsOpen)).ForMember(dest => dest.OpenTime, opt => opt.MapFrom(src => src.FOpenTime)).ForMember(dest => dest.CloseTime, opt => opt.MapFrom(src => src.FCloseTime)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.EEngName, opt => opt.MapFrom(src => src.FEEngName));

            CreateMap<SaveMealReportingInput, tMealReporting>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FEID, opt => opt.MapFrom(src => src.EID)).ForMember(dest => dest.FEName, opt => opt.MapFrom(src => src.EName)).ForMember(dest => dest.FMType, opt => opt.MapFrom(src => src.MType)).ForMember(dest => dest.FRTime, opt => opt.MapFrom(src => src.RTime)).ForMember(dest => dest.FWorkOver, opt => opt.MapFrom(src => src.WorkOver)).ForMember(dest => dest.FIsOverTime, opt => opt.MapFrom(src => src.IsOverTime)).ForMember(dest => dest.FReportingType, opt => opt.MapFrom(src => src.ReportingType)).ForMember(dest => dest.FCancellation, opt => opt.MapFrom(src => src.Cancellation)).ForMember(dest => dest.FCancelReason, opt => opt.MapFrom(src => src.CancelReason)).ForMember(dest => dest.FCancelTime, opt => opt.MapFrom(src => src.CancelTime)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FEEngName, opt => opt.MapFrom(src => src.EEngName)).ForMember(dest => dest.FDeptName, opt => opt.MapFrom(src => src.DeptName)).ForMember(dest => dest.FIsOdd, opt => opt.MapFrom(src => src.IsOdd)); CreateMap<tMealReporting, MealReportingOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.EID, opt => opt.MapFrom(src => src.FEID)).ForMember(dest => dest.EName, opt => opt.MapFrom(src => src.FEName)).ForMember(dest => dest.MType, opt => opt.MapFrom(src => src.FMType)).ForMember(dest => dest.RTime, opt => opt.MapFrom(src => src.FRTime)).ForMember(dest => dest.WorkOver, opt => opt.MapFrom(src => src.FWorkOver)).ForMember(dest => dest.IsOverTime, opt => opt.MapFrom(src => src.FIsOverTime)).ForMember(dest => dest.ReportingType, opt => opt.MapFrom(src => src.FReportingType)).ForMember(dest => dest.Cancellation, opt => opt.MapFrom(src => src.FCancellation)).ForMember(dest => dest.CancelReason, opt => opt.MapFrom(src => src.FCancelReason)).ForMember(dest => dest.CancelTime, opt => opt.MapFrom(src => src.FCancelTime)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.EEngName, opt => opt.MapFrom(src => src.FEEngName)).ForMember(dest => dest.DeptName, opt => opt.MapFrom(src => src.FDeptName)).ForMember(dest => dest.IsOdd, opt => opt.MapFrom(src => src.FIsOdd));

            CreateMap<SaveFoodProcureInput, tFoodProcure>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FProcureDate, opt => opt.MapFrom(src => src.ProcureDate)).ForMember(dest => dest.FName, opt => opt.MapFrom(src => src.Name)).ForMember(dest => dest.FType, opt => opt.MapFrom(src => src.Type)).ForMember(dest => dest.FQuantity, opt => opt.MapFrom(src => src.Quantity)).ForMember(dest => dest.FPrice, opt => opt.MapFrom(src => src.Price)).ForMember(dest => dest.FTotalPrice, opt => opt.MapFrom(src => src.TotalPrice)).ForMember(dest => dest.FUnit, opt => opt.MapFrom(src => src.Unit)).ForMember(dest => dest.FCanteenType, opt => opt.MapFrom(src => src.CanteenType)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)); CreateMap<tFoodProcure, FoodProcureOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.ProcureDate, opt => opt.MapFrom(src => src.FProcureDate)).ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.FName)).ForMember(dest => dest.Type, opt => opt.MapFrom(src => src.FType)).ForMember(dest => dest.Quantity, opt => opt.MapFrom(src => src.FQuantity)).ForMember(dest => dest.Price, opt => opt.MapFrom(src => src.FPrice)).ForMember(dest => dest.TotalPrice, opt => opt.MapFrom(src => src.FTotalPrice)).ForMember(dest => dest.Unit, opt => opt.MapFrom(src => src.FUnit)).ForMember(dest => dest.CanteenType, opt => opt.MapFrom(src => src.FCanteenType)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted));

            CreateMap<SaveFaceInput, tFace>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FName, opt => opt.MapFrom(src => src.Name)).ForMember(dest => dest.FUserId, opt => opt.MapFrom(src => src.UserId)).ForMember(dest => dest.FPhoto, opt => opt.MapFrom(src => src.Photo)).ForMember(dest => dest.FEnter, opt => opt.MapFrom(src => src.Enter)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FErrMsg, opt => opt.MapFrom(src => src.ErrMsg)).ForMember(dest => dest.FDoorEnter, opt => opt.MapFrom(src => src.DoorEnter)).ForMember(dest => dest.FDoorErrMsg, opt => opt.MapFrom(src => src.DoorErrMsg)).ForMember(dest => dest.FStartTime, opt => opt.MapFrom(src => src.StartTime)).ForMember(dest => dest.FEndTime, opt => opt.MapFrom(src => src.EndTime)).ForMember(dest => dest.FValidCycle, opt => opt.MapFrom(src => src.ValidCycle)); 
            CreateMap<tFace, FaceOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.FName)).ForMember(dest => dest.UserId, opt => opt.MapFrom(src => src.FUserId)).ForMember(dest => dest.Photo, opt => opt.MapFrom(src => src.FPhoto)).ForMember(dest => dest.Enter, opt => opt.MapFrom(src => src.FEnter)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.ErrMsg, opt => opt.MapFrom(src => src.FErrMsg)).ForMember(dest => dest.DoorEnter, opt => opt.MapFrom(src => src.FDoorEnter)).ForMember(dest => dest.DoorErrMsg, opt => opt.MapFrom(src => src.FDoorErrMsg)).ForMember(dest => dest.StartTime, opt => opt.MapFrom(src => src.FStartTime)).ForMember(dest => dest.EndTime, opt => opt.MapFrom(src => src.FEndTime)).ForMember(dest => dest.ValidCycle, opt => opt.MapFrom(src => src.FValidCycle));

            CreateMap<SaveFaceInput, tFace>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FName, opt => opt.MapFrom(src => src.Name)).ForMember(dest => dest.FUserId, opt => opt.MapFrom(src => src.UserId)).ForMember(dest => dest.FPhoto, opt => opt.MapFrom(src => src.Photo)).ForMember(dest => dest.FEnter, opt => opt.MapFrom(src => src.Enter)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)).ForMember(dest => dest.FErrMsg, opt => opt.MapFrom(src => src.ErrMsg)).ForMember(dest => dest.FDoorEnter, opt => opt.MapFrom(src => src.DoorEnter)).ForMember(dest => dest.FDoorErrMsg, opt => opt.MapFrom(src => src.DoorErrMsg)).ForMember(dest => dest.FStartTime, opt => opt.MapFrom(src => src.StartTime)).ForMember(dest => dest.FEndTime, opt => opt.MapFrom(src => src.EndTime)).ForMember(dest => dest.FValidCycle, opt => opt.MapFrom(src => src.ValidCycle)); CreateMap<tFace, FaceOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.FName)).ForMember(dest => dest.UserId, opt => opt.MapFrom(src => src.FUserId)).ForMember(dest => dest.Photo, opt => opt.MapFrom(src => src.FPhoto)).ForMember(dest => dest.Enter, opt => opt.MapFrom(src => src.FEnter)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted)).ForMember(dest => dest.ErrMsg, opt => opt.MapFrom(src => src.FErrMsg)).ForMember(dest => dest.DoorEnter, opt => opt.MapFrom(src => src.FDoorEnter)).ForMember(dest => dest.DoorErrMsg, opt => opt.MapFrom(src => src.FDoorErrMsg)).ForMember(dest => dest.StartTime, opt => opt.MapFrom(src => src.FStartTime)).ForMember(dest => dest.EndTime, opt => opt.MapFrom(src => src.FEndTime)).ForMember(dest => dest.ValidCycle, opt => opt.MapFrom(src => src.FValidCycle));

            CreateMap<SaveDoorRecordInput, tDoorRecord>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FUserId, opt => opt.MapFrom(src => src.UserId)).ForMember(dest => dest.FUserName, opt => opt.MapFrom(src => src.UserName)).ForMember(dest => dest.FRecordTime, opt => opt.MapFrom(src => src.RecordTime)).ForMember(dest => dest.FRecogType, opt => opt.MapFrom(src => src.RecogType)).ForMember(dest => dest.FPassStatus, opt => opt.MapFrom(src => src.PassStatus)); CreateMap<tDoorRecord, DoorRecordOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.UserId, opt => opt.MapFrom(src => src.FUserId)).ForMember(dest => dest.UserName, opt => opt.MapFrom(src => src.FUserName)).ForMember(dest => dest.RecordTime, opt => opt.MapFrom(src => src.FRecordTime)).ForMember(dest => dest.RecogType, opt => opt.MapFrom(src => src.FRecogType)).ForMember(dest => dest.PassStatus, opt => opt.MapFrom(src => src.FPassStatus));

            CreateMap<SaveFoodResidueInput, tFoodResidue>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FResidue, opt => opt.MapFrom(src => src.Residue)).ForMember(dest => dest.FRealresidue, opt => opt.MapFrom(src => src.Realresidue)); CreateMap<tFoodResidue, FoodResidueOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Residue, opt => opt.MapFrom(src => src.FResidue)).ForMember(dest => dest.Realresidue, opt => opt.MapFrom(src => src.FRealresidue));

            CreateMap<tPassRule, PassRuleOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.RuleName, opt => opt.MapFrom(src => src.FRuleName)).ForMember(dest => dest.Version, opt => opt.MapFrom(src => src.FVersion)).ForMember(dest => dest.Weekday, opt => opt.MapFrom(src => src.FWeekday)).ForMember(dest => dest.Passable, opt => opt.MapFrom(src => src.FPassable)).ForMember(dest => dest.Impassable, opt => opt.MapFrom(src => src.FImpassable)).ForMember(dest => dest.Enter, opt => opt.MapFrom(src => src.FEnter));

            CreateMap<SaveOfficeMaterialSupplierInput, tOfficeMaterialSupplier>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FName, opt => opt.MapFrom(src => src.Name)).ForMember(dest => dest.FMatter, opt => opt.MapFrom(src => src.Matter)).ForMember(dest => dest.FInformation, opt => opt.MapFrom(src => src.Information)).ForMember(dest => dest.FInformationType, opt => opt.MapFrom(src => src.InformationType)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)); CreateMap<tOfficeMaterialSupplier, OfficeMaterialSupplierOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.FName)).ForMember(dest => dest.Matter, opt => opt.MapFrom(src => src.FMatter)).ForMember(dest => dest.Information, opt => opt.MapFrom(src => src.FInformation)).ForMember(dest => dest.InformationType, opt => opt.MapFrom(src => src.FInformationType)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted));

            CreateMap<SaveOfficeMaterialsInput, tOfficeMaterials>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FSupplierId, opt => opt.MapFrom(src => src.SupplierId)).ForMember(dest => dest.FName, opt => opt.MapFrom(src => src.Name)).ForMember(dest => dest.FLink, opt => opt.MapFrom(src => src.Link)).ForMember(dest => dest.FDetails, opt => opt.MapFrom(src => src.Details)).ForMember(dest => dest.FPhoto, opt => opt.MapFrom(src => src.Photo)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)); CreateMap<tOfficeMaterials, OfficeMaterialsOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.SupplierId, opt => opt.MapFrom(src => src.FSupplierId)).ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.FName)).ForMember(dest => dest.Link, opt => opt.MapFrom(src => src.FLink)).ForMember(dest => dest.Details, opt => opt.MapFrom(src => src.FDetails)).ForMember(dest => dest.Photo, opt => opt.MapFrom(src => src.FPhoto)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted));

            CreateMap<SaveSignInput, tSign>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FSourceID, opt => opt.MapFrom(src => src.SourceID)).ForMember(dest => dest.FFakeSourceID, opt => opt.MapFrom(src => src.FakeSourceID)).ForMember(dest => dest.FPersonal, opt => opt.MapFrom(src => src.Personal)).ForMember(dest => dest.FName, opt => opt.MapFrom(src => src.Name)).ForMember(dest => dest.FPhone, opt => opt.MapFrom(src => src.Phone)).ForMember(dest => dest.FCompany, opt => opt.MapFrom(src => src.Company)).ForMember(dest => dest.FVisitNum, opt => opt.MapFrom(src => src.VisitNum)).ForMember(dest => dest.FFakeVisitNum, opt => opt.MapFrom(src => src.FakeVisitNum)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)); CreateMap<tSign, SignOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.SourceID, opt => opt.MapFrom(src => src.FSourceID)).ForMember(dest => dest.FakeSourceID, opt => opt.MapFrom(src => src.FFakeSourceID)).ForMember(dest => dest.Personal, opt => opt.MapFrom(src => src.FPersonal)).ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.FName)).ForMember(dest => dest.Phone, opt => opt.MapFrom(src => src.FPhone)).ForMember(dest => dest.Company, opt => opt.MapFrom(src => src.FCompany)).ForMember(dest => dest.VisitNum, opt => opt.MapFrom(src => src.FVisitNum)).ForMember(dest => dest.FakeVisitNum, opt => opt.MapFrom(src => src.FFakeVisitNum)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted));

            CreateMap<SaveSourceInput, tSource>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FName, opt => opt.MapFrom(src => src.Name)).ForMember(dest => dest.FDeleted, opt => opt.MapFrom(src => src.Deleted)); CreateMap<tSource, SourceOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.FName)).ForMember(dest => dest.Deleted, opt => opt.MapFrom(src => src.FDeleted));

            CreateMap<SaveShowCusInput, tShowCus>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.fId)).ForMember(dest => dest.FWXID, opt => opt.MapFrom(src => src.fWXID)).ForMember(dest => dest.FName, opt => opt.MapFrom(src => src.fName)).ForMember(dest => dest.FTel, opt => opt.MapFrom(src => src.fTel)).ForMember(dest => dest.FAdr, opt => opt.MapFrom(src => src.fAdr)).ForMember(dest => dest.FCompany, opt => opt.MapFrom(src => src.fCompany)).ForMember(dest => dest.FIsSign, opt => opt.MapFrom(src => src.fIsSign));
            CreateMap<tShowCus, ShowCusOutput>().ForMember(dest => dest.fId, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.fWXID, opt => opt.MapFrom(src => src.FWXID)).ForMember(dest => dest.fName, opt => opt.MapFrom(src => src.FName)).ForMember(dest => dest.fTel, opt => opt.MapFrom(src => src.FTel)).ForMember(dest => dest.fAdr, opt => opt.MapFrom(src => src.FAdr)).ForMember(dest => dest.fCompany, opt => opt.MapFrom(src => src.FCompany)).ForMember(dest => dest.fIsSign, opt => opt.MapFrom(src => src.FIsSign));


            CreateMap<tCanteenPlan, CanteenPlanOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.FName)).ForMember(dest => dest.ChageDate, opt => opt.MapFrom(src => src.FChageDate)).ForMember(dest => dest.ShowType, opt => opt.MapFrom(src => src.FShowType)).ForMember(dest => dest.Space, opt => opt.MapFrom(src => src.FSpace)).ForMember(dest => dest.BGM, opt => opt.MapFrom(src => src.FBGM)).ForMember(dest => dest.ChangeType, opt => opt.MapFrom(src => src.FChangeType));

            CreateMap<tFile, FileOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.PlanID, opt => opt.MapFrom(src => src.FPlanID)).ForMember(dest => dest.ShowType, opt => opt.MapFrom(src => src.FShowType)).ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.FName)).ForMember(dest => dest.LongTime, opt => opt.MapFrom(src => src.FLongTime)).ForMember(dest => dest.Sort, opt => opt.MapFrom(src => src.FSort));

            CreateMap<SaveCanteenPlanInput, tCanteenPlan>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FName, opt => opt.MapFrom(src => src.Name)).ForMember(dest => dest.FChageDate, opt => opt.MapFrom(src => src.ChageDate)).ForMember(dest => dest.FShowType, opt => opt.MapFrom(src => src.ShowType)).ForMember(dest => dest.FSpace, opt => opt.MapFrom(src => src.Space)).ForMember(dest => dest.FBGM, opt => opt.MapFrom(src => src.BGM)).ForMember(dest => dest.FChangeType, opt => opt.MapFrom(src => src.ChangeType));


            CreateMap<SaveCanteenClientInput, tCanteenClient>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FPlanID, opt => opt.MapFrom(src => src.PlanID)).ForMember(dest => dest.FName, opt => opt.MapFrom(src => src.Name)).ForMember(dest => dest.FChageDate, opt => opt.MapFrom(src => src.ChageDate)).ForMember(dest => dest.FCode, opt => opt.MapFrom(src => src.Code)).ForMember(dest => dest.FRemark, opt => opt.MapFrom(src => src.Remark));
            CreateMap<tCanteenClient, CanteenClientOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.PlanID, opt => opt.MapFrom(src => src.FPlanID)).ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.FName)).ForMember(dest => dest.ChageDate, opt => opt.MapFrom(src => src.FChageDate)).ForMember(dest => dest.Code, opt => opt.MapFrom(src => src.FCode)).ForMember(dest => dest.Remark, opt => opt.MapFrom(src => src.FRemark));

            CreateMap<SaveUserComputerInput, tUserComputer>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FUserID, opt => opt.MapFrom(src => src.UserID)).ForMember(dest => dest.FComputerId, opt => opt.MapFrom(src => src.ComputerId)).ForMember(dest => dest.FSysHostName, opt => opt.MapFrom(src => src.SysHostName)).ForMember(dest => dest.FSystemVer, opt => opt.MapFrom(src => src.SystemVer)).ForMember(dest => dest.FBaseBoard, opt => opt.MapFrom(src => src.BaseBoard)).ForMember(dest => dest.FProcessor, opt => opt.MapFrom(src => src.Processor)).ForMember(dest => dest.FMemory, opt => opt.MapFrom(src => src.Memory)).ForMember(dest => dest.FHardDisk, opt => opt.MapFrom(src => src.HardDisk)).ForMember(dest => dest.FGraphicsCard, opt => opt.MapFrom(src => src.GraphicsCard)).ForMember(dest => dest.FMonitor, opt => opt.MapFrom(src => src.Monitor)); CreateMap<tUserComputer, UserComputerOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.UserID, opt => opt.MapFrom(src => src.FUserID)).ForMember(dest => dest.ComputerId, opt => opt.MapFrom(src => src.FComputerId)).ForMember(dest => dest.SysHostName, opt => opt.MapFrom(src => src.FSysHostName)).ForMember(dest => dest.SystemVer, opt => opt.MapFrom(src => src.FSystemVer)).ForMember(dest => dest.BaseBoard, opt => opt.MapFrom(src => src.FBaseBoard)).ForMember(dest => dest.Processor, opt => opt.MapFrom(src => src.FProcessor)).ForMember(dest => dest.Memory, opt => opt.MapFrom(src => src.FMemory)).ForMember(dest => dest.HardDisk, opt => opt.MapFrom(src => src.FHardDisk)).ForMember(dest => dest.GraphicsCard, opt => opt.MapFrom(src => src.FGraphicsCard)).ForMember(dest => dest.Monitor, opt => opt.MapFrom(src => src.FMonitor));

            CreateMap<SaveMaintenanceApplyInput, tMaintenanceApply>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FUserID, opt => opt.MapFrom(src => src.UserID)).ForMember(dest => dest.FComputerId, opt => opt.MapFrom(src => src.ComputerId)).ForMember(dest => dest.FQuestionType, opt => opt.MapFrom(src => src.QuestionType)).ForMember(dest => dest.FRemark, opt => opt.MapFrom(src => src.Remark)).ForMember(dest => dest.FStatus, opt => opt.MapFrom(src => src.Status)).ForMember(dest => dest.FAssign, opt => opt.MapFrom(src => src.Assign)).ForMember(dest => dest.FLeader, opt => opt.MapFrom(src => src.Leader)); CreateMap<tMaintenanceApply, MaintenanceApplyOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.UserID, opt => opt.MapFrom(src => src.FUserID)).ForMember(dest => dest.ComputerId, opt => opt.MapFrom(src => src.FComputerId)).ForMember(dest => dest.QuestionType, opt => opt.MapFrom(src => src.FQuestionType)).ForMember(dest => dest.Remark, opt => opt.MapFrom(src => src.FRemark)).ForMember(dest => dest.Status, opt => opt.MapFrom(src => src.FStatus)).ForMember(dest => dest.Assign, opt => opt.MapFrom(src => src.FAssign)).ForMember(dest => dest.Leader, opt => opt.MapFrom(src => src.FLeader));

            CreateMap<SaveMaintenanceInput, tMaintenance>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.FMId, opt => opt.MapFrom(src => src.MId)).ForMember(dest => dest.FQuestionType, opt => opt.MapFrom(src => src.QuestionType)).ForMember(dest => dest.FHandle, opt => opt.MapFrom(src => src.Handle)).ForMember(dest => dest.FRemark, opt => opt.MapFrom(src => src.Remark)); CreateMap<tMaintenance, MaintenanceOutput>().ForMember(dest => dest.Id, opt => opt.MapFrom(src => src.Id)).ForMember(dest => dest.MId, opt => opt.MapFrom(src => src.FMId)).ForMember(dest => dest.QuestionType, opt => opt.MapFrom(src => src.FQuestionType)).ForMember(dest => dest.Handle, opt => opt.MapFrom(src => src.FHandle)).ForMember(dest => dest.Remark, opt => opt.MapFrom(src => src.FRemark));
            //在这里插入数据
        }

    }
}
